<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

//录入商品
class AddShopCost extends Model
{

	protected $table = 'add_shop_cost';

	protected $guarded = [];

	//查询商品数量
	function getShopLocAttribute(){
		$loc = AddMerchant::where('id',$this->mid)->value('location');
		
		return $loc;
	}

}